<?php
$cs=Yii::app()->clientScript;
$baseUrl=$this->module->assetsUrl;
$cs->registerCssFile($baseUrl.'/css/global.css');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<title>成都茶楼协会-后台登录</title>
</head>
<body id="body-login">
<div id="login-wrap">
    <div class="login-header"></div>
    <div class="login-content">
        <div class="login-content-left">
            <img src="<?php echo $baseUrl .'/img/login_icon.png' ?>" />
        </div>
        <div class="login-content-right">
    		<h3 class="login-h3"><i></i>登录</h3>
    		<div class="login_innor">
    				<?php if(Yii::app()->user->hasFlash('flash')):?>
    				<div class="error_info"> 
    					<p><?php echo Yii::app()->user->getFlash('flash'); ?> </p>
    				</div>
    				<?php endif;?>
    				<form id="login_form" action="<?php echo $this->createUrl('default/login');?>" method="post">
    						<p>
    								<span class="lab"><label class="form_label" for="user_name">用户名：</label></span>
    								<input class="login-input" type="text" name="username" id="user_name"  AUTOCOMPLETE="off" />
    						</p>
    						<p>
    								<span class="lab"><label class="form_label" for="user_pw">密&nbsp;&nbsp;&nbsp;码：</label></span>
    								<input class="login-input"  type="password" name="password" id="user_pw"  AUTOCOMPLETE="off" />
    						</p>
    						<p>
    								<span class="lab"><label class="form_label" for="user_check">验证码：</label></span>
    								<input  class="login-code" type="text" id="user_check" name="verifyCode"  AUTOCOMPLETE="off"/>
    								<?php if(CCaptcha::checkRequirements()): ?>
    					            <?php $this->widget('CCaptcha',array(
    									            'clickableImage'=>true,//是否允许点击图片切换验证码
    									            'buttonLabel'=>'换一组',//验证码后面的文字
    									            'showRefreshButton'=>false,//是否显示验证码后面的文字
    									            'imageOptions'=>array(
    										            'style'=>'cursor:pointer',
    										            'title'=>'换一组'
    									            )
    								            )
    						              ); ?>
    					            <?php endif;?>
    								</p>
    						<p class="rem">
    								<span class="lab"></span>
    								<input type="checkbox" name="rememberMe" value="1" checked/>
    								<label for="login_remenber">记住我的账号，下次访问自动登录</label>
    						</p>
    						<p>
    								<span class="lab"></span>
    								<input type="submit" id="login_submit" name="submitLogin"  value="登陆"/>
    						</p>
    				</form>
    		</div>	
        </div>	
    </div>
    <div class="login_footer">
        <p>Powered by TS.Inc. Copyright © 2013 TS. Inc.<span>Version 1.0.0</span></p>
    </div>
</div>
<script>
$(function(){
	$('#login_form input:text,#login_form input:password').focus(function(){
		$(this).css('border','1px solid green');
	}).blur(function(){
		$(this).css('border','1px solid #ccc');
	})
})
</script>
</body>
</html>
